import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		name: 'Main',
		component: () => import('/src/views/Main.vue'),
		redirect:'/home',
		children: []
	},
	{
		path: '/login',
		name: 'login',
		component: () => import('/src/views/Login/Login.vue')
	}
]

const route = new VueRouter({
	// mode: 'history',
	routes
})

export default route